package thomas.web.service;

import org.springframework.stereotype.Service;

import thomas.web.entity.Pet;
import thomas.web.entity.PetType;
import thomas.web.entity.Resident;
import thomas.web.entity.User;

@Service
public class ResidentSevice {

	public Resident getResident(String username) {
		Resident resident = new Resident();
		User user = new User();
		user.setUsername("thomas");
		user.setPassword("thomas");
		resident.setUser(user);
		Pet pet = new Pet();
		pet.setType(PetType.DOG);
		pet.setName("Oulander");
		resident.setPet(pet);
		resident.setUniqueAddress("5B16F08");
		return resident;
	}
	
	
}
